import React, { Component } from 'react'
import { Grid } from 'antd-mobile';
import '../css/Home.css'

export default class Home extends Component {
  constructor() {
    super();
    this.state = {
      data: Array.from(new Array(9)).map((_val, i) => ({
        icon: 'https://gw.alipayobjects.com/zos/rmsportal/nywPmnTAvTmLusPxHPSu.png',
        text: `name${i}`,
      }))
    }
  }
  render() {
    return (
      <div>
        <Grid data={this.state.data} isCarousel onClick={_el => console.log(_el)} />
      </div>
    )
  }
}
